home *** CD-ROM | disk | FTP | other *** search
- SERVICE: COMMAND KEY: ?
-
- airMailFolder = @AirMailFolder
-
-
-
- '{RTV 7/21/88}
-
- IF NOT Exists%(airMailFolder) THEN ∂
-
- NewFolder airMailFolder
-
- IF resultCode% <> 0 THEN ∂
-
- airMailFolder = ""
-
-
-
- IF airMailFolder = "" THEN ∂
-
- airMailFolder = Left(DirPath,Instr%(DirPath,":")) & "AirMail Folder:" : ∂
-
- @AirMailFolder = airMailFolder : ∂
-
- NewFolder airMailFolder
-
- IF NOT Exists%(airMailFolder & "Addresses:") THEN ∂
-
- NewFolder airMailFolder & "Addresses:"
-
- padding = " "
-
- GOSUB checkDbox
-
- IF Instr%(ItemText(6),"File Express") > 0 THEN DBOX 0:GOSUB FXbps
-
- IF handle <> "" THEN ∂
-
- aPath = airMailFolder & handle & ":" : ∂
-
- NewFolder aPath : ∂
-
- OPEN 1,airMailFolder & "Addresses:" & handle,WRITE : ∂
-
- WRITE 1,handle & ":" & theAddress & "•" & theService : ∂
-
- CLOSE 1
-
- END
-
-
-
- checkDbox:
-
- Set DBOX 509
-
- DBoxResp(2) = ""
-
- DBoxResp(1) = ""
-
- lastRC% = RadioCluster%(1)
-
- ItemText(6) = ItemText(RadioCluster%(1)+8) & " mail address:"
-
- ItemText(15) = "Please enter a folder name and address below."
-
- lastItemText = ItemText(6)
-
- DBOX 509
-
- loop:
-
- dbr% = DBoxResult%
-
- IF dbr% = CANCEL% THEN ∂
-
- handle = "" : ∂
-
- RETURN
-
- IF dbr% = OK% THEN ∂
-
- theService = ItemText(RadioCluster%(1)+8) : ∂
-
- theAddress = DBoxResp(2) : ∂
-
- handle = Left(DBoxResp(1),31) : ∂
-
- IF DBoxResp(1) = "" THEN ∂
-
- DBoxResp(1) = "" : BELL : GOTO loop ELSE ∂
-
- IF DBoxResp(2) = "" THEN ∂
-
- DBoxResp(2) = "" : BELL : GOTO loop ELSE ∂
-
- RETURN
-
- IF lastRC% <> RadioCluster%(1) THEN ∂
-
- lastRC% = RadioCluster%(1) : ∂
-
- IF RadioCluster%(1) = 1 THEN ∂
-
- ItemText(6) = ItemText(RadioCluster%(1)+8) & " address:" ∂
-
- ELSE ∂
-
- IF RadioCluster%(1) = 6 THEN ∂
-
- ItemText(6) = ItemText(RadioCluster%(1)+8) & " phone number:" ∂
-
- ELSE ∂
-
- ItemText(6) = ItemText(RadioCluster%(1)+8) & " mail address:"
-
- goto loop
-
-
-
- FXbps:
-
- HOLD OFF
-
- SET DBOX 400
-
- RadioCluster%(1)= 2
-
- CURSOR RESET
-
- DBOX 400
-
- CURSOR WATCH
-
- IF DBoxResult% = CANCEL% THEN handle = "" : RETURN
-
- IF RadioCluster%(1) = 1 THEN bps = "300" ∂
-
- ELSE IF RadioCluster%(1) = 2 THEN bps = "1200" ∂
-
- ELSE IF RadioCluster%(1) = 3 THEN bps = "2400" ∂
-
- ELSE IF RadioCluster%(1) = 4 THEN bps = "4800" ∂
-
- ELSE IF RadioCluster%(1) = 5 THEN bps = "9600" ∂
-
- ELSE bps = "19200"
-
- commParms = bps & ",8,NO%,1,YES%"
-
- theAddress = theAddress & "|" & commParms
-
- RETURN
-
-
-
-